/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const Router = {
  path: '/system_setting',
  component: Layout,
  name: 'SystemSetting',
  meta: {
    title: '系统设置',
    roles: ['admin', 'system_setting'],
    icon: 'el-icon-setting'
  },
  children: [
    {
      name: 'Help',
      path: 'help',
      component: () => import('@/views/system/help/index.vue'),
      meta: {
        title: '打卡页面',
        roles: ['admin', 'card_page'],
        icon: 'yuan-red'
      }
    },
    {
      name: 'HighRiskSpider',
      path: 'high_risk_spider',
      component: () => import('@/views/system/high_risk/index.vue'),
      meta: {
        title: '中高风险地区爬取',
        roles: ['admin', 'high_risk_spider'],
        icon: 'yuan-blue'
      }
    },
    {
      name: 'HighRiskArea',
      path: 'high_risk_area',
      component: () => import('@/views/system/high_risk_area_detail/index.vue'),
      meta: {
        title: '中高风险地区详情',
        roles: ['admin', 'high_risk_spider'],
        icon: 'yuan-orange'
      }
    },
    {
      name: 'ImportantCity',
      path: 'important_city',
      component: () => import('@/views/system/important_city/index.vue'),
      meta: {
        title: '重点城市',
        roles: ['admin', 'important_city'],
        icon: 'yuan-yellow'
      }
    },
    // {
    //   name: 'FoucsArea',
    //   path: 'foucs_area',
    //   component: () => import('@/views/system/focus_area/index.vue'),
    //   meta: {
    //     title: '封闭地区',
    //     roles: ['admin', 'focus_area'],
    //     icon: 'yuan-orange'
    //   }
    // },
    {
      name: 'Holiday',
      path: 'holiday',
      component: () => import('@/views/system/holiday/index.vue'),
      meta: {
        title: '节假日',
        roles: ['admin', 'holiday'],
        icon: 'yuan-pink'
      }
    }
  ]
}
export default Router
